home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
japanish_fishing.swf
/
scripts
/
frame_53
/
DoAction.as
Wrap
Text File
|
2011-01-13
|
2KB
|
48 lines
function bichibichi(i_num)
{
_root.i_anmnum = _root.anmnum[i_num];
_root.i_anmflg = _root.anmflg[i_num];
_root.i_anmcnt = _root.anmcnt[i_num];
_root.i_kakudocnt = _root.kakudocnt[i_num];
_root.i_idouchi = _root.idouchi[i_num];
_root.i_xpos = _root.xpos[i_num];
_root.i_ypos = _root.ypos[i_num];
_root.i_anmcnt += 1;
if(_root.i_anmcnt >= 4)
{
_root.i_anmcnt = 0;
if(_root.i_anmflg == 0)
{
_root.i_anmflg = 1;
eval("_root..kingyo_anm" + i_num).gotoAndStop("kingyo" + _root.i_anmnum + "_1");
}
else
{
_root.i_anmflg = 0;
eval("_root..kingyo_anm" + i_num).gotoAndStop("kingyo" + _root.i_anmnum + "_2");
}
}
_root.i_kakudocnt -= 1;
if(0 >= _root.i_kakudocnt)
{
_root.i_kakudocnt = 2;
_root.i_kakudo += 120;
radian = 0.017453292519943295 * (180 - _root.i_kakudo);
_root.i_xpos = Math.sin(radian);
_root.i_xpos *= 4;
_root.i_ypos = Math.cos(radian);
_root.i_ypos *= 4;
eval("_root..kingyo_anm" + i_num)._rotation = _root.i_kakudo;
}
xx = random(8) - 4;
yy = random(8) - 4;
eval("_root..kingyo_anm" + i_num)._x += xx;
eval("_root..kingyo_anm" + i_num)._y += yy;
_root.anmflg[i_num] = _root.i_anmflg;
_root.anmcnt[i_num] = _root.i_anmcnt;
_root.kakudocnt[i_num] = _root.i_kakudocnt;
_root.idouchi[i_num] = _root.i_idouchi;
_root.xpos[i_num] = _root.i_xpos;
_root.ypos[i_num] = _root.i_ypos;
}